package com.chc.web.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/04/21/13:22
 * @Description:
 */
@Data
@TableName("book")
public class Book implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    //书名
    private String name;
    //图书作者
    private String author;
    //图书出版社
    private String publish;
    //图书页数
    private Long pages;
    //图书价格
    private Float price;
    //图书分类id
    private Long bookcaseid;
    //图书借阅状态
    private Long abled;
    //添加评论list
    @TableField(exist = false)
    private Long bookid;
    @TableField(exist = false)
    private Long readerid;
    @TableField(exist = false)
    private String borrowtime;
    @TableField(exist = false)
    private String returntime;
    @TableField(exist = false)
    private Long state;
}
